<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ include file="taglib.jsp" %>
<div class="sidebar" id="sidebar">
    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'fixed')
        } catch (e) {
        }
    </script>
    <div class="sidebar-shortcuts" id="sidebar-shortcuts">
        <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
            <span class="btn btn-success"></span>

            <span class="btn btn-info"></span>

            <span class="btn btn-warning"></span>

            <span class="btn btn-danger"></span>
        </div>
    </div><!-- #sidebar-shortcuts -->
    <ul class="nav nav-list">
        <li>
            <a href="/" id="1_0">
                <i class="icon-dashboard"></i>
                <span class="menu-text"> 后台使用说明 </span>
            </a>
        </li>
        <c:forEach items="${fns:getMenuList()}" var="menu" varStatus="idxStatus">
            <c:if test="${menu.parent.id eq '1'&& menu.isShow}">
                <li id="${menu.id}_0">
                    <a href="#" class="dropdown-toggle">
                        <i class="icon-${menu.iconcls}"></i>
                        <span class="menu-text">${menu.name} </span>
                        <b class="arrow icon-angle-down"></b>
                    </a>
                    <ul class="submenu">
                        <c:set var="id" value="${menu.id}" scope="page"/>
                        <c:forEach items="${fns:getSubMenuList(id)}" var="subMenu" varStatus="_idxStatus">
                            <c:if test="${subMenu.sysResourceType eq '0' && subMenu.isShow}">
                                <li>
                                    <a class="menu-item" href="${subMenu.url}"
                                       id="${menu.id}_${subMenu.id}">
                                        <i class="icon-${subMenu.iconcls}"></i>
                                            ${subMenu.name}
                                    </a>
                                </li>
                            </c:if>
                        </c:forEach>
                    </ul>
                </li>
            </c:if>
        </c:forEach>
    </ul><!-- /.nav-list -->

    <div class="sidebar-collapse" id="sidebar-collapse">
        <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
    </div>

    <script type="text/javascript">
        try {
            ace.settings.check('sidebar', 'collapsed')
        } catch (e) {
        }
    </script>
</div>
